/*
 Erica Sadun, http://ericasadun.com
 iPhone Developer's Cookbook, 3.0 Edition
 BSD License, Use at your own risk
 */

#import <UIKit/UIKit.h>

typedef NS_ENUM (NSUInteger, CJAnnimationOptions) {
    CJAnnimationOptionsSHowFomUp,
    CJAnnimationOptionsShowFromBotton,
    CJAnnimationOptionsShowLeft,
    CJAnnimationOptionsShowFromRight
    
    
};

CGPoint CGRectGetCenter(CGRect rect);
CGRect  CGRectMoveToCenter(CGRect rect, CGPoint center);

@interface UIView (ViewFrameGeometry)
@property CGPoint origin;
@property CGSize size;

@property (readonly) CGPoint bottomLeft;
@property (readonly) CGPoint bottomRight;
@property (readonly) CGPoint topRight;

@property CGFloat height;
@property CGFloat width;

@property CGFloat top;
@property CGFloat left;

@property CGFloat bottom;
@property CGFloat right;

- (void) moveBy: (CGPoint) delta;
- (void) scaleBy: (CGFloat) scaleFactor;
- (void) fitInSize: (CGSize) aSize;

-(void)setConnerRediu;

-(void)setConnerByRediu:(int)rediu;

-(void)setBorderByColor:(UIColor*)color width:(CGFloat)width;

//写一个动画出来添加动画效果  添加客户体验好咯
/**
 *  写一个动画出来添加动画效果  添加客户体验好咯
 *
 *  @param supView 父类的view
 *  @param option  动画的静茹方式
 */
+(void)setAnnimationVieFromView:(UIView*)view  ToView:(UIView *)supView useCJAnnimationOption:(CJAnnimationOptions)option;















@end